﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;

using Microsoft.Xna.Framework;

using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace Bombif.Sprite
{
    class SpritePlayer : SpriteMother
    {
        private Vector2 position;
        private float speed;
        Vector2 displacement = Vector2.One;
        private Texture2D texture;

        public Texture2D Texture
        {
            get { return texture; }
            set { texture = value; }
        }

        public Vector2 Displacement
        {
            get { return displacement; }
         
        }

        public float Speed
        {
            get { return speed; }
            set { speed = value; }
        }


        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }
       

        public virtual void Initialize()
        {
        }

        public virtual void LoadContent(ContentManager content, string assetName)
        {
            texture = content.Load<Texture2D>(assetName);
        }

        public virtual void Update(GameTime gameTime)
        {
        }

        public virtual void Draw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            // à modifier selon le joueur
            spriteBatch.Begin();
            spriteBatch.Draw(texture, position, Color.White);
            spriteBatch.End();
        }
        
    }
}